package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * app用户-白名单对象 app_user_whitelist
 * 
 * @author ruoyi
 * @date 2023-04-03
 */
public class AppUserWhitelist extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 状态，0：正常，1：冻结 */
    @Excel(name = "状态，0：正常，1：冻结")
    private Long state;

    /** 白名单ip */
    @Excel(name = "白名单ip")
    private String whitelistIp;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setWhitelistIp(String whitelistIp) 
    {
        this.whitelistIp = whitelistIp;
    }

    public String getWhitelistIp() 
    {
        return whitelistIp;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("state", getState())
            .append("whitelistIp", getWhitelistIp())
            .append("type", getType())
            .append("remark", getRemark())
            .append("userId", getUserId())
            .toString();
    }
}
